﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>Demo::JskitLog::</title>
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="this is my page">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="../main.css">
        <script src="../../release/jskit.core.js">
        </script>
        <script src="../JskitConfig_doc.js">
        </script>
        <script>
            function testLog(){
                jskitLog.info("测试开始");
                var x = 100;
                jskitLog.debug("x=" + x);
                var y = 200;
                jskitLog.debug("y=" + y);
                var z = x * 200 - y;
                jskitLog.error("z=" + z);
                jskitLog.info("测试完成");
            }
            
            function singleMsg(){
                var d = new Date();
                jskitLog.debug("输出随机数:" + jskitUtil.guid());
            }
        </script>
        <style>
        </style>
    </head>
    <body>
        <table border="0" width="100%" id="Table1">
            <tbody>
                <tr>
                    <td class="Package">
                        JskitLog Demo
                    </td>
                </tr>
                <tr>
                    <td class="content">
                        <a href="../tutorial/JskitLog.html">查看JskitLog.js参考</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <textarea name="JskitSyntax_code" class="html">
                            &lt;!-- // 引入必须的文件 --&gt;
                            &lt;script src="base/JskitBase.js">&lt;/script>
                            &lt;script src="base/JskitUtil.js">&lt;/script>
                            &lt;script src="base/JskitLog.js">&lt;/script>
                        </textarea>
                        <textarea name="JskitSyntax_code" class="js">
function testLog(){
	jskitLog.info("测试开始");
	var x = 100;
	jskitLog.debug("x="+x);
	var y = 200;
	jskitLog.debug("y="+y);
	var z = x*200 - y;
	jskitLog.debug("z="+z);
	jskitLog.info("测试完成");
}
function singleMsg(){
    var d = new Date();
    jskitLog.debug("输出随机数:" + jskitUtil.guid());
}                        </textarea>
						 <textarea name="JskitSyntax_code" class="js">
1,&lt;input type="button" value="打开日志窗口" onclick="jskitLog.open()"/&gt;
&lt;br&gt;
2,&lt;input type="button" value="测试日志输出（执行testLog())" onclick="testLog()"/&gt;
&lt;br&gt;
2,&lt;input type="button" value="实时输出(执行singleMsg())" onclick="singleMsg()"/&gt;
&lt;br&gt;
3,&lt;input type="button" value="清除日志内容" onclick="jskitLog.clear()"/&gt;
&lt;br&gt;
4,&lt;input type="button" value="关闭日志窗口" onclick="jskitLog.close()"/&gt;
						</textarea>

                    </td>
                    <td>
                        1,<input type="button" value="打开日志窗口" onclick="jskitLog.open()"/>
                        <br>
                        2,<input type="button" value="测试日志输出（执行testLog())" onclick="testLog()"/>
                        <br>
                        2,<input type="button" value="实时输出(执行singleMsg())" onclick="singleMsg()"/>
                        <br>
                        3,<input type="button" value="清除日志内容" onclick="jskitLog.clear()"/>
                        <br>
                        4,<input type="button" value="关闭日志窗口" onclick="jskitLog.close()"/>
                    </td>
                </tr>
                <tr>
                    <td height="10">
                    </td>
                </tr>
                <tr>
                    <td class="content">
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>
